package com.tifa.vote.controller;

import com.fasterxml.jackson.databind.util.JSONPObject;
import com.mysql.cj.x.protobuf.MysqlxExpr.Object;
import com.tifa.vote.bean.Vote;
import com.tifa.vote.bean.VoteNums;
import com.tifa.vote.service.VoteService;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname UserController
 * @Description
 * @Date 2022/6/15 12:16
 * @Created by hengyuan
 */
@RestController
public class UserController {

  @Autowired
  VoteService voteService;

  @RequestMapping("/show_list")
  public String showUserList() {
    return "nia";
  }

  @RequestMapping("/delete_user/{id}")
  public String dele(@PathVariable("id") Integer id) {
    System.out.println(id);
    return "id.toString();";
  }

  @RequestMapping("/name")
  public String ajaix(@RequestBody Map<String, Object> map) {
    System.out.println(map);

    return "你好";
  }


}
